package com.zyq.chessdemo;

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello World!");

        String[] season = {"spring", "summer", "autumn", "winter"};
        String item = null;
        for (int i = 0; i < season.length; i++) {
            item = season[i];
        }
        switch (item) {
            case "spring":
                System.out.println("spring");
                break;
            case "summer":
                System.out.println("summer");
                break;
            case "autumn":
                System.out.println("autumn");
                break;
            case "winter":
                System.out.println("winter");
                break;
            default:
                System.out.println("default");
        }
    }
}


